package com.qiyu.tech.mybatis.log.starter.web;

import com.qiyu.tech.mybatis.log.starter.dao.UserDao;
import com.qiyu.tech.mybatis.log.starter.model.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author linhao
 * @Date created in 4:00 下午 2021/2/22
 */
@RestController
public class UserWeb {

    @Resource
    private UserDao userDao;

    @GetMapping("test")
    public User getUser(){
        return userDao.selectById("1");
    }
}
